package com.kuang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ControllerTest01 {
@RequestMapping("test")
    public String test01(Model model){
        model.addAttribute("msg","test01,跳转成功！");
        return "test";
        //"return可以找到返回值的jsp页面(/WEB-INF/jsp/test.jsp)（此处就是“test.jsp页面”）"
    }
}
